//
//  XLNewTopUpView.h
//  XiangLove
//
//  Created by feng song on 2017/11/30.
//  Copyright © 2017年 BAOMIHUA.COM. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XLNewTopUpDelegate<NSObject>
@optional

-(void)XLSelectedJD:(UIButton  *)selectedBtn;
-(void)XLNewWXZHIFU:(UIButton  *)wxBtn;  //微信支付
-(void)XLNewZFBZHIFU:(UIButton *)zfbBtn; //支付宝支付
-(void)xlAppstorePay:(UIButton *)payBtn; //AppstorePay
-(void)topupViewDidDisAppear;
-(void)XLNewtestTopup;


@end

@interface XLNewTopUpView : UIView

@property (nonatomic, weak) id<XLNewTopUpDelegate>delegate;
@property (nonatomic, assign) CGFloat   bgWidth;
@property (nonatomic, assign) CGFloat   bgHeigh;
@property (nonatomic, strong) UIButton *Selectbutton;
@property (nonatomic, strong) UIView   *selecedView;
@property (nonatomic, strong) UILabel  *titleView;
@property (nonatomic, strong) UILabel  *jdView;
@property (nonatomic, assign) BOOL      In_purchase;
// 按钮数组
@property (nonatomic, strong) NSMutableArray *btnArray;
@property (nonatomic, strong) NSMutableArray *topupMoneyAry;
@property (nonatomic, strong) NSMutableArray *topupJDAry;

@property (nonatomic, strong) NSString *money;


+(XLNewTopUpView *)shareXLNewZHIFU;
-(instancetype)initWithFrame:(CGRect)frame withIn_purchase:(BOOL)In_purchase withTopupMonyAry:(NSMutableArray *)monyAry withTopupJDAry:(NSMutableArray *)jdAry;

@end
